package com.lj.graduate.entity;

//import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;


@TableName("user")
@Data
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer userId;


    private String tel;


    private String sex;


    private String userName;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    private String address;


    private Integer credits;


    private String authority;

    @JsonIgnore
    private String user_pwd;

    private String avatarurl;

    @TableLogic
    @Version
    private Integer deleted;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private String token;
}